<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./01.css">
</head>
<body>
    <div id="app">
        <!-- <div class="nav-item" v-for="(item,index) in navs">{{item}}</div> -->
        <div class="nav-item" v-for="(item,index) in navs" :key="item.id">{{item.text}}</div>
    </div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data:{
            // navs:["新闻","hao123","地图","视频","贴吧","学术","更多",],
            navs:[
                {text:"新闻",id:1},
                {text:"hao123",id:2},
                {text:"地图",id:3},
                {text:"视频",id:4},
                {text:"贴吧",id:5},
                {text:"学术",id:6},
                {text:"更多",id:7},
            ],
        },
    });
</script>
</html>